<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let array = [1, 2, 3, 4, 5];
      console.log(array);

      array[6] = 6;
      // 数组会吧5索引位置自动填充为undefined
      console.log(array[5]);

      let cms = [1, 2, 33, 44];
      console.log(cms.length);

      let arr = Array.of(1, 2, 3, 34, 4);
      console.log(arr);
    </script>
  </body>
</html>
